package br.com.nandle.access.entity;

// Generated 18/03/2012 19:53:05 by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * Perfil generated by hbm2java
 */
@Entity
@Table(name = "perfil", catalog = "mrh", uniqueConstraints = @UniqueConstraint(columnNames = "NM_PERFIL"))
public class Perfil implements java.io.Serializable {
	
	/**
	 * 	private static final long serialVersionUID = 1L;

	 */
	private static final long serialVersionUID = 1L;
	
	private Integer idPerfil;
	private String nmPerfil;
	private Date dtCriacao;

	public Perfil() {
	}

	public Perfil(String nmPerfil) {
		this.nmPerfil = nmPerfil;
	}

	public Perfil(String nmPerfil, Date dtCriacao) {
		this.nmPerfil = nmPerfil;
		this.dtCriacao = dtCriacao;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID_PERFIL", unique = true, nullable = false)
	public Integer getIdPerfil() {
		return this.idPerfil;
	}

	public void setIdPerfil(Integer idPerfil) {
		this.idPerfil = idPerfil;
	}

	@Column(name = "NM_PERFIL", unique = true, nullable = false, length = 50)
	public String getNmPerfil() {
		return this.nmPerfil;
	}

	public void setNmPerfil(String nmPerfil) {
		this.nmPerfil = nmPerfil;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DT_CRIACAO", length = 0)
	public Date getDtCriacao() {
		return this.dtCriacao;
	}

	public void setDtCriacao(Date dtCriacao) {
		this.dtCriacao = dtCriacao;
	}

}
